package redisdemo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import redisdemo.po.AdressPO;
import redisdemo.service.DemoService;

import java.util.List;

@RestController
public class DemoController {
    @Autowired
    private DemoService demoService;

    @RequestMapping(value = "find",method = RequestMethod.POST)
    public List<AdressPO> find(@RequestBody AdressPO adressPO)
    {
        return demoService.find(adressPO);
    }
}
